/*
 * Albareth - an action roleplaying game.
 * Copyright (C) 2008 Jens Anuth
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 *   02110-1301, USA.
 * 
 * $Id: ItemContainer.java 48 2008-05-17 02:04:48Z jens464 $
*/
package albareth.core.entity;

import java.util.List;

/**
 * Something that can hold items.
 */
public interface ItemContainer extends AssetOwner, Representable
{
    public boolean addItem(Item item);
    
    public boolean addAllItems(List items);

    public boolean removeItem(Item item);
    
    public Item removeItem(int index);
    
    public boolean dropItem(Item item);
    
    public Item dropItem(Item item, int amount);
    
    public boolean containsItem(Item item);
    
    public Item dropItem(int i);

    public List getAllItems();

    public void dropAllItems();
    
    public void removeAllItems();
    
    public int numItems();
    
    public int getCapacity();
    
    public void addItemContainerChangeListener(
            ItemContainerChangeListener listener);
    

}
